package com.aspose.cells;

class zata implements zahj {
   private double a = 0.0D;
   private double b = 0.0D;
   private double c = 0.0D;
   private double d = 0.0D;
   private double e = 0.0D;
   private int f = 0;

   public zagu a(double var1, double var3) {
      ++this.f;
      this.a += var1;
      this.b += var3;
      this.c += var1 * var3;
      this.d += var1 * var1;
      this.e += var3 * var3;
      return null;
   }

   public zagu a(double var1, double var3, int var5) {
      this.f += var5;
      double var6 = var1 * (double)var5;
      this.a += var6;
      this.c += var6 * var3;
      this.d += var6 * var1;
      var6 = var3 * (double)var5;
      this.b += var6;
      this.e += var6 * var3;
      return null;
   }

   public zagu a() {
      double var1 = ((double)this.f * this.d - this.a * this.a) * ((double)this.f * this.e - this.b * this.b);
      return (zagu)(var1 == 0.0D ? zza.a : new zyy(((double)this.f * this.c - this.a * this.b) / Math.sqrt(var1)));
   }

   public zagu b() {
      return zza.a;
   }
}
